import request from '@/utils/request'



// 列表
export function bannerlist(data) {
  return request({
    url: '/washing/banner/page',
    method: 'post',
    data: data
  })
}

// 更新
export function updateBanner(data) {
  return request({
    url: '/washing/banner/update',
    method: 'post',
    data: data
  })
}

// 删除
export function deleteBanner(data) {
  return request({
    url: '/washing/banner/delete?id='+data.id,
    method: 'delete',
    data: data
  })
}

// 创建
export function createBanner(data) {
  return request({
    url: '/washing/banner/create',
    method: 'post',
    data: data
  })
}

